package cn.bisoft.java.service.ext.httpclient.dao.impl;

import cn.bisoft.java.bean.entity.AnteCounter;
import cn.bisoft.java.service.ext.httpclient.dao.MessengerDao;

import com.hengpeng.common.cache.CacheRepository;

public class MessengerDaoImpl implements MessengerDao
{
	private CacheRepository cacheRepository;

	public String getMessengerPwd(String arg0)
	{
		AnteCounter counter = this.cacheRepository.getElement(arg0, AnteCounter.class);

		if (counter != null)
		{
			return counter.getCounterPass();
		}
		
		return null;
	}

	public CacheRepository getCacheRepository()
	{
		return cacheRepository;
	}

	public void setCacheRepository(CacheRepository cacheRepository)
	{
		this.cacheRepository = cacheRepository;
	}
}
